//
//  BookDetailCell.h
//  WNZSSQ
//
//  Created by JDKJ on 2018/12/5.
//  Copyright © 2018年 JDKJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CWStarRateView.h"
#import "BookCityView.h"
#import "BookDetalViewController.h"
#import "BRPlaceholderTextView.h"

typedef void(^SureClick)(void);

typedef void(^HidenClick)(void);

NS_ASSUME_NONNULL_BEGIN

#pragma mark - 头部cell

@interface BookDetailCell : UITableViewCell

//背景图
@property ( nonatomic , weak ) UIImageView *bgImageView;


//封面
@property ( nonatomic , weak ) UIImageView *covImageView;

//标题
@property ( nonatomic , weak) UILabel *titleLable;

//作者
@property ( nonatomic , weak) UILabel *nameLable;

/**
 星数
 */
@property(nonatomic,weak)CWStarRateView *starView;

//类型
@property ( nonatomic , weak) UILabel *typeLable;


//字数
@property ( nonatomic , weak) UILabel *numberLable;

//内容
@property ( nonatomic , weak) UILabel *contenLable;

//分割线
@property ( nonatomic , weak) UIView *sepView;

////更新情况
@property ( nonatomic , weak) UILabel *updataLable;

//更新时间
@property ( nonatomic , weak) UILabel *updataTimeLable;


@end

#pragma mark - 组头
@interface BookDetailCellHeadView : UIView

/**
 //横线
 */
@property ( nonatomic , weak ) UIView *sepView;

/**
 //竖线
 */
@property ( nonatomic , weak ) UIImageView *sepImageView;

//标题
@property ( nonatomic , weak) UILabel *titleLable;

//后面按钮
@property ( nonatomic , weak) UIButton *delBtn;

@end

#pragma mark - 同类好书
@interface BookDetailSameCell : UITableViewCell

@property(nonatomic,weak)UICollectionView *collectionView;

@property(nonatomic,weak)UICollectionViewFlowLayout *collectViewFlowLayout;

@end

#pragma mark - 他们都在追
@interface BookDetailChaseCell : UITableViewCell

@property(nonatomic,weak)UICollectionView *collectionView;

@property(nonatomic,weak)UICollectionViewFlowLayout *collectViewFlowLayout;


@end

#pragma mark - 他们都在追的collectionViewCell

@interface BookDetailChaseIconCell : UICollectionViewCell

/**
 追的头像
 */
@property(nonatomic,weak)UIImageView *iconImageView;


@end

#pragma mark - 图书相关信息
@interface BookAboutCell : UITableViewCell

/**
 内容制作/版权来源
 */
@property ( nonatomic , weak) UILabel *titleLable;

/**
 免责声明
 */
@property ( nonatomic , weak) UILabel *statementLable;


@end

#pragma mark - 底部三个按钮
@interface BookDetailToolView : UIView

/**
 目录
 */
@property ( nonatomic , weak) UIButton *directoryBtn;

/**
 立即阅读
 */
@property ( nonatomic , weak) UIButton *readBtn;

/**
 下载
 */
@property ( nonatomic , weak) UIButton *downBtn;


@end

#pragma mark - 评论弹框

@interface BookDetailCommentView : UIView

/**
 背景色
 */
@property(nonatomic,weak)UIView *alphaView;


/**
 内容view
 */
@property(nonatomic,weak)UIView *whiteView;

/**
 评分
 */
@property ( nonatomic , weak) UILabel *rankLable;

/**
 星数
 */
@property(nonatomic,weak)CWStarRateView *starView;

/**
 UITextField
 */
@property(nonatomic,weak)BRPlaceholderTextView *bottomTF;

/**
 字数
 */
@property ( nonatomic , weak) UILabel *nubLable;


/**
 发送按钮
 */
@property(nonatomic,weak)UIButton *sendBtn;
@property(nonatomic,weak)UIView *sendView;

/**
 按钮确定回调
 */
@property (nonatomic, strong) SureClick sureClick;


/**
 隐藏回调
 */
@property (nonatomic, strong)HidenClick  hidenClick;


- (void)showWithAnimation;
- (void)hiddenViews;
- (void)addViews;



@end

NS_ASSUME_NONNULL_END
